﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

using MyHotel_BUSWS.MyHotel_PhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_ThanhToanDAO_Webservice;
using MyHotel_BUSWS.MyHotel_PhieuDichVuDAO_Webservice;
using MyHotel_BUSWS.MyHotel_PhieuThuePhongDAO_Webservice;
using MyHotel_BUSWS.MyHotel_MatHangDAO_Webservice;


namespace MyHotel_BUSWS
{
    /// <summary>
    /// Summary description for MHThanhToanBUSWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class MHThanhToanBUSWS : System.Web.Services.WebService
    {

        [WebMethod]
        public Phong[] getDSPhongDangThue()
        {
            return MHThanhToanBUS.getDSPhongDangThue();
        }

        [WebMethod]
        public ThongTinThanhToan getThongTinThanhToan(int maphong)
        {
            return MHThanhToanBUS.getThongTinThanhToan(maphong);
        }

        [WebMethod]
        public bool ThanhToanPhong(int maphong, float sotien)
        {
            return MHThanhToanBUS.ThanhToanPhong(maphong, sotien);
        }

        [WebMethod]
        public PhieuDichVu[] getListDichVuByMaPhong(int maPhong)
        {
            return MHThanhToanBUS.getListDichVuByMaPhong(maPhong);
        }

        [WebMethod]
        public bool themPhieuDichVu(PhieuDichVu phieuDV)
        {

            return MHThanhToanBUS.themPhieuDichVu(phieuDV);
        }

        [WebMethod]
        public PhieuThuePhong getPhieuThuePhong(int maPhong)
        {
            return MHThanhToanBUS.getPhieuThuePhong(maPhong);
        }

        [WebMethod]
        public bool thanhToanPhong(PhieuThuePhong pthuePhong)
        {
            return MHThanhToanBUS.thanhToanPhong(pthuePhong);
        }

        [WebMethod]
        public MatHang[] getListMatHang()
        {
            return MHThanhToanBUS.getListMatHang();
        }
    }
}
